
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.HTML · 邦德前端开发</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="i@ickeep.com">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-diy-introduction/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2.CSS.html" />
    
    
    <link rel="prev" href="../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://2017hcb.bond520.com/pc/index.html" target="_blank" class="custom-link">邦德官网</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">开发说明</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">前端规范</li>
        
        
    
        <li class="chapter active" data-level="2.1" data-path="1.HTML.html">
            
                <a href="1.HTML.html">
            
                    
                    1.HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="2.CSS.html">
            
                <a href="2.CSS.html">
            
                    
                    2.CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="3.JavaScript.html">
            
                <a href="3.JavaScript.html">
            
                    
                    3.JavaScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="4.ESlint检测规则说明.html">
            
                <a href="4.ESlint检测规则说明.html">
            
                    
                    4.ESlint 检测规则说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="5.vue规范.html">
            
                <a href="5.vue规范.html">
            
                    
                    5.vue规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="6.前后端数据交互说明.html">
            
                <a href="6.前后端数据交互说明.html">
            
                    
                    6.前后端数据交互说明
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">常见问题</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../3.常见问题/常见问题.html">
            
                <a href="../3.常见问题/常见问题.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >1.HTML</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="html&#x89C4;&#x8303;"><a name="html&#x89C4;&#x8303;" class="plugin-anchor" href="#html&#x89C4;&#x8303;"><i class="fa fa-link" aria-hidden="true"></i></a>HTML&#x89C4;&#x8303;</h3>
<blockquote>
<p>&#x5373;&#x4F7F;&#x662F;SPA&#x5E94;&#x7528;&#xFF0C;HTML&#x7ED3;&#x6784;&#x4ECD;&#x9700;&#x8981;&#x505A;&#x5230;&#x89C4;&#x8303;&#x3001;&#x5408;&#x7406;&#x3001;&#x8BED;&#x6587;&#x5316;&#xFF0C;&#x540E;&#x7AEF;&#x4F1A;&#x5EFA;&#x4E13;&#x95E8;&#x7684;SSR&#x670D;&#x52A1;&#xFF0C;&#x5582;&#x722C;&#x866B;&#xFF01;</p>
<ol>
<li><p>&#x57FA;&#x7840;&#x7ED3;&#x6784;
 &lt;!DOCTYPE html&gt;</p>
<pre class="language-"><code> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>html</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation">=</span>zh-cmn-Hans</span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>head</span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">charset</span><span class="token attr-value"><span class="token punctuation">=</span>utf-8</span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span>renderer</span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span>webkit|ie-comp|ie-stand</span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation">=</span>X-UA-Compatible</span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>IE<span class="token punctuation">=</span>edge,chrome<span class="token punctuation">=</span>1<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">http-equiv</span><span class="token attr-value"><span class="token punctuation">=</span>Cache-Control</span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span>no-siteapp</span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>title</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>title</span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span>description</span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span><span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
         <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>meta</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span>keywords</span> <span class="token attr-name">content</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span><span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>head</span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>body</span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>body</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>html</span><span class="token punctuation">&gt;</span></span>
</code></pre></li>
<li><p>&#x6587;&#x6863;&#x7C7B;&#x578B;  html5 &lt;!DOCTYPE html&gt;</p>
</li>
<li>&#x8BED;&#x8A00;  &#x7B80;&#x4F53;&#x4E2D;&#x6587; zh-cmn-Hans</li>
<li>&#x5B57;&#x7B26;  utf-8</li>
<li>&#x58F0;&#x660E;&#x6781;&#x901F;&#x6A21;&#x5F0F; renderer (&#x9488;&#x5BF9;360&#x591A;&#x6838;&#x6D4F;&#x89C8;&#x5668;)</li>
<li>&#x58F0;&#x660E;IE&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x6E32;&#x67D3;&#x65B9;&#x5F0F;</li>
<li>&#x7981;&#x6B62;&#x767E;&#x5EA6;&#x8F6C;&#x7801;</li>
<li>title&#x3001;description&#x3001;keywords &#x5185;&#x5BB9;&#x5FC5;&#x586B;</li>
<li>&#x6807;&#x7B7E;&#x3001;&#x5C5E;&#x6027;&#x5C0F;&#x5199;&#xFF0C;&#x5176;&#x4E2D;&#x5C5E;&#x6027;&#x7528;&quot;&quot;&#x53CC;&#x5F15;&#x53F7; </li>
</ol>
</blockquote>
<pre class="language-"><code>    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>class-name<span class="token punctuation">&quot;</span></span> <span class="token attr-name">data-name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>name<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
</code></pre><p>3.&#x7ED3;&#x6784;&#x987A;&#x5E8F;&#x548C;&#x89C6;&#x89C9;&#x987A;&#x5E8F;&#x57FA;&#x672C;&#x4FDD;&#x6301;&#x4E00;&#x81F4;</p>
<blockquote>
<ol>
<li>&#x6309;&#x7167;&#x4ECE;&#x4E0A;&#x81F3;&#x4E0B;&#x3001;&#x4ECE;&#x5DE6;&#x5230;&#x53F3;&#x7684;&#x89C6;&#x89C9;&#x987A;&#x5E8F;&#x4E66;&#x5199;HTML&#x7ED3;&#x6784;&#x3002;</li>
<li>&#x6709;&#x65F6;&#x5019;&#x4E3A;&#x4E86;&#x4FBF;&#x4E8E;&#x641C;&#x7D22;&#x5F15;&#x64CE;&#x6293;&#x53D6;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x4F1A;&#x5C06;&#x91CD;&#x8981;&#x5185;&#x5BB9;&#x5728;HTML&#x7ED3;&#x6784;&#x987A;&#x5E8F;&#x4E0A;&#x63D0;&#x524D;&#x3002;</li>
<li>&#x7528;div&#x4EE3;&#x66FF;table&#x5E03;&#x5C40;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;HTML&#x66F4;&#x5177;&#x7075;&#x6D3B;&#x6027;&#xFF0C;&#x4E5F;&#x65B9;&#x4FBF;&#x5229;&#x7528;CSS&#x63A7;&#x5236;&#x3002;</li>
<li>table&#x4E0D;&#x5EFA;&#x8BAE;&#x7528;&#x4E8E;&#x5E03;&#x5C40;&#xFF0C;&#x4F46;&#x8868;&#x73B0;&#x5177;&#x6709;&#x660E;&#x663E;&#x8868;&#x683C;&#x5F62;&#x5F0F;&#x7684;&#x6570;&#x636E;&#xFF0C;table&#x8FD8;&#x662F;&#x9996;&#x9009;&#x3002;</li>
<li>&#x7ED3;&#x6784;&#x3001;&#x8868;&#x73B0;&#x3001;&#x884C;&#x4E3A;&#x4E09;&#x8005;&#x5206;&#x79BB;&#xFF0C;&#x907F;&#x514D;&#x5185;&#x8054;</li>
<li>&#x4FDD;&#x6301;&#x826F;&#x597D;&#x7684;&#x7B80;&#x6D01;&#x7684;&#x6811;&#x5F62;&#x7ED3;&#x6784;</li>
<li>&#x6BCF;&#x4E00;&#x4E2A;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x90FD;&#x53E6;&#x8D77;&#x4E00;&#x884C;,&#x5220;&#x9664;&#x5197;&#x4F59;&#x7684;&#x884C;&#x5C3E;&#x7684;&#x7A7A;&#x683C;&#x3002;</li>
<li>&#x7F29;&#x8FDB;&#x4F7F;&#x7528;4&#x4E2A;&#x7A7A;&#x683C;&#x4EE3;&#x66FF;1&#x4E2A;Tab</li>
<li>&#x4E25;&#x683C;&#x5D4C;&#x5957;</li>
<li>&#x5C3D;&#x53EF;&#x80FD;&#x4EE5;&#x6700;&#x4E25;&#x683C;&#x7684;xhtml strict&#x6807;&#x51C6;&#x6765;&#x5D4C;&#x5957;&#xFF0C;&#x6BD4;&#x5982;&#x5185;&#x8054;&#x5143;&#x7D20;&#x4E0D;&#x80FD;&#x5305;&#x542B;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x7B49;&#x7B49;&#x3002;</li>
<li>&#x6B63;&#x786E;&#x95ED;&#x5408;&#x6807;&#x7B7E;&#x4E14;&#x5FC5;&#x987B;&#x95ED;&#x5408;&#x3002;</li>
<li>&#x5185;&#x5BB9;&#x7C7B;&#x578B;&#x51B3;&#x5B9A;&#x4F7F;&#x7528;&#x7684;&#x8BED;&#x4E49;&#x6807;&#x7B7E;</li>
<li>&#x52A0;&#x5F3A;&#x201C;&#x8D44;&#x6E90;&#x578B;&#x201D;&#x5185;&#x5BB9;&#x7684;&#x53EF;&#x8BBF;&#x95EE;&#x6027;&#x548C;&#x53EF;&#x7528;&#x6027;</li>
<li>&#x5728;&#x8D44;&#x6E90;&#x578B;&#x7684;&#x5185;&#x5BB9;&#x4E0A;&#x52A0;&#x5165;&#x63CF;&#x8FF0;&#x6587;&#x6848;&#xFF0C;&#x6BD4;&#x5982;&#x7ED9;img&#x6DFB;&#x52A0;alt&#x5C5E;&#x6027;&#xFF0C;&#x5728;audio&#x5185;&#x52A0;&#x5165;&#x6587;&#x6848;&#x548C;&#x94FE;&#x63A5;&#x7B49;&#x7B49;&#x3002;</li>
</ol>
</blockquote>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; doc.ickeep.com 2017 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2017-02-14 18:19:25
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../" class="navigation navigation-prev " aria-label="Previous page: Introduction">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="2.CSS.html" class="navigation navigation-next " aria-label="Next page: 2.CSS">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.HTML","level":"2.1","depth":1,"next":{"title":"2.CSS","level":"2.2","depth":1,"path":"2.前端规范/2.CSS.md","ref":"2.前端规范/2.CSS.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","prism","-highlight","search-plus","tbfed-pagefooter","expandable-chapters-small","anchors","edit-link","diy-introduction","sitemap-general","livereload"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy doc.ickeep.com 2017","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"introduction-text":"开发说明","prism":{},"livereload":{},"sitemap-general":{"prefix":"https://doc.ickeep.com"},"fontsettings":{"theme":"white","family":"sans","size":2},"fontSettings":{"theme":"night","family":"sans","size":2},"diy-introduction":{},"favicon":{"shortcut":"/assets/img/favicon.ico","bookmark":"/assets/img/favicon.ico","appleTouch":"/assets/img/apple-touch-icon.png","appleTouchMore":{"120x120":"/assets/img/apple-touch-icon-120x120.png","180x180":"/assets/img/apple-touch-icon-180x180.png"}},"expandable-chapters-small":{},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["facebook","google","twitter","instapaper","instapaper"]},"edit-link":{"label":"编辑此页","base":"https://git.oschina.net/ickeep/dev-doc.git/edit/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"search-plus":{}},"theme":"default","author":"i@ickeep.com","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.MD","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"邦德前端开发","language":"zh-hans","links":{"sidebar":{"邦德官网":"http://2017hcb.bond520.com/pc/index.html"}},"gitbook":"*","description":"邦德前端开发文档"},"file":{"path":"2.前端规范/1.HTML.md","mtime":"2017-02-14T10:19:25.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-03-10T13:25:56.104Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

